By using AWS re:Post, you agree to the Terms of Use
/Measuraments not reported in Iot SiteWise/

Measuraments not reported in Iot SiteWise



I have followed the tutorial here.

I can see my data in IoT core, but the measurement are not reported in IoT SiteWise. There seem to be a permission problem. This is the error from the error rule

  "ruleName": "SiteWiseTutorialDeviceRule",
  "topic": "$aws/things/SiteWiseTutorialDevice1/shadow/update/accepted",
  "cloudwatchTraceId": "e3aec656-d5d7-b500-5558-d51ae7aee895",
  "clientId": "N/A",
  "base64OriginalPayload": "eyJzdGF0ZSI6eyJyZXBvcnRlZCI6eyJ0ZW1wZXJhdHVyZSI6MTAuMSwiaHVtaWRpdHkiOjY0LjIsInRpbWVzdGFtcCI6MS42NTU3OTk2MjQ0NTczODFFOX19LCJtZXRhZGF0YSI6eyJyZXBvcnRlZCI6eyJ0ZW1wZXJhdHVyZSI6eyJ0aW1lc3RhbXAiOjE2NTU3OTk2MjR9LCJodW1pZGl0eSI6eyJ0aW1lc3RhbXAiOjE2NTU3OTk2MjR9LCJ0aW1lc3RhbXAiOnsidGltZXN0YW1wIjoxNjU1Nzk5NjI0fX19LCJ2ZXJzaW9uIjo5NjAsInRpbWVzdGFtcCI6MTY1NTc5OTYyNCwiY2xpZW50VG9rZW4iOiIyYzU2Zjg1NC0zM2IzLTQzNmQtYjJjZC1kMzk2ZmZkNTYxMGYifQ==",
  "failures": [
      "failedAction": "IotSiteWiseAction",
      "failedResource": "",
      "errorMessage": "Failed to send message data to IoT SiteWise asset properties. [Code: AccessDeniedException, Message: User: arn:aws:sts::908401988620:assumed-role/SiteWiseTutorialDeviceRuleRole/9SUxG6SG is not authorized to perform: iotsitewise:BatchPutAssetPropertyValue on resource: /tutorial/device/SiteWiseTutorialDevice1/temperature because no identity-based policy allows the iotsitewise:BatchPutAssetPropertyValue action]. Message arrived on: $aws/things/SiteWiseTutorialDevice1/shadow/update/accepted, Action: iotSiteWise"

Any suggestion?

1 Answers

Hi Ruggiero. Most likely the SiteWiseTutorialDeviceRuleRole role used by the rule has not been granted the iotsitewise:BatchPutAssetPropertyValue permission. More info here:

answered 14 days ago
  • Thanks that helped. Now there is no error. However, there is not measurement in IoT SiteWise. I have refreshed the measurement page of the asset a few times to be sure.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions