Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

EMIT Measure bug [evaluation scenario 3] #3

Open
Prasoonda opened this issue Oct 13, 2017 · 10 comments
Open

EMIT Measure bug [evaluation scenario 3] #3

Prasoonda opened this issue Oct 13, 2017 · 10 comments
Assignees
Labels

Comments

@Prasoonda
Copy link

There seems to be something wrong with Emit Measure. I am attaching the screenshot here

image

@JeromeRocheteau
Copy link
Contributor

JeromeRocheteau commented Oct 13, 2017 via email

@JeromeRocheteau
Copy link
Contributor

Erro log below:

angular.js:13920 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: instance in vm.measureInstances track by instance.instanceName, Duplicate key: PeakTech Power Measure on Emit, Duplicate value: {"id":56,"instanceName":"PeakTech Power Measure on Emit","instanceDescription":null,"measureName":"EmitPowerUsage","measureVersion":"1.0.0","isShedule":true,"shedulingExpression":"10000","measureType":"DIRECT","manageLastMeasurement":null,"remoteAdress":null,"remoteLabel":null,"isRemote":false,"project":{"id":7,"projectName":"EMIT SandBox","projectDescription":null,"creationDate":null,"projectImage":null,"owner":{"id":5,"login":"measure","firstName":null,"lastName":null,"email":"[email protected]","activated":true,"langKey":"en","resetKey":null,"resetDate":null}},"properties":[],"ownedReferences":[]}
http://errors.angularjs.org/1.5.8/ngRepeat/dupes?p0=instance%20in%20vm.measureInstances%20track%20by%20instance.instanceName&p1=PeakTech%20Power%20Measure%20on%20Emit&p2=%7B%22id%22%3A56%2C%22instanceName%22%3A%22PeakTech%20Power%20Measure%20on%20Emit%22%2C%22instanceDescription%22%3Anull%2C%22measureName%22%3A%22EmitPowerUsage%22%2C%22measureVersion%22%3A%221.0.0%22%2C%22isShedule%22%3Atrue%2C%22shedulingExpression%22%3A%2210000%22%2C%22measureType%22%3A%22DIRECT%22%2C%22manageLastMeasurement%22%3Anull%2C%22remoteAdress%22%3Anull%2C%22remoteLabel%22%3Anull%2C%22isRemote%22%3Afalse%2C%22project%22%3A%7B%22id%22%3A7%2C%22projectName%22%3A%22EMIT%20SandBox%22%2C%22projectDescription%22%3Anull%2C%22creationDate%22%3Anull%2C%22projectImage%22%3Anull%2C%22owner%22%3A%7B%22id%22%3A5%2C%22login%22%3A%22measure%22%2C%22firstName%22%3Anull%2C%22lastName%22%3Anull%2C%22email%22%3A%22antonin.abherve%40softeam.fr%22%2C%22activated%22%3Atrue%2C%22langKey%22%3A%22en%22%2C%22resetKey%22%3Anull%2C%22resetDate%22%3Anull%7D%7D%2C%22properties%22%3A%5B%5D%2C%22ownedReferences%22%3A%5B%5D%7D
at angular.js:68
at ngRepeatAction (angular.js:29821)
at $watchCollectionAction (angular.js:17385)
at Scope.$digest (angular.js:17524)
at Scope.$apply (angular.js:17790)
at done (angular.js:11831)
at completeRequest (angular.js:12033)
at XMLHttpRequest.requestLoaded (angular.js:11966)

@JeromeRocheteau
Copy link
Contributor

AngularJs bug

@aabherve
Copy link
Contributor

You have 2 measureInstance with the same name in the databses. ( There is already an issue on this subject, i have to check the unicity of measureInstance name).

You can fix the issue by removing one of this measureInstanceform the database.
To do that :

  • Connsction as asmin to the platform( admin, admin)
  • Go to Database -> MeasureInstance menu
  • Remouve the ducplicated instance

@JeromeRocheteau
Copy link
Contributor

Done it works correctly
capture du 2017-10-13 11-52-18

@JeromeRocheteau
Copy link
Contributor

The initial problem was that no access token was provided. Then EMIT rejects the request!

The MEASURE platform should check whether or not values are provided to declared parameters.

@Prasoonda
Copy link
Author

Prasoonda commented Oct 13, 2017 via email

@Prasoonda
Copy link
Author

Prasoonda commented Oct 13, 2017 via email

@JeromeRocheteau
Copy link
Contributor

Yes, in order to get your own access token, please:

  1. log in EMIT (http://emit.icam.fr) as user (username: user, password: itea3measure)
  2. go to menu sub-item Account > Tokens
  3. select an instrument: and select a feature: View > Enable
  4. copy the UUID then provided to the measure AccessToken parameter value

@Prasoonda
Copy link
Author

Prasoonda commented Oct 13, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants