Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Update asset lifecycle state with Powerautomate - not allowed for field 'MaintenanceAssetTypeId'

(1) ShareShare
ReportReport
Posted on by 14
Hi everyone,
 
I'm using Powerautomate to update the lifecycle state of my top asset whenever the lifecycle state of one of the children changes:
 
 
Object ID, Asset and Asset Type are the values that are read from this very asset before.
 
As response, I receive:
{
"status": 403,
"message": "An error has occurred. update not allowed for field 'MaintenanceAssetTypeId'\r\nclientRequestId: 433d7831-7942-447b-99fe-666816a3fec9",
"error": {
"message": "An error has occurred. update not allowed for field 'MaintenanceAssetTypeId'"
},
"source": "trainpoint-dev.sandbox.operations.no.dynamics.com",
"errors": []
}
 
I understand that the MaintenanceAssetTypeId cannot be changed. I don't want to change this field. I only want to update the Lifecycle State. But since "Asset Type" is required in the "update a record" block, I can't avoid filling it out. The value is the same as before.
 
Any ideas how to solve this?
 
 
best regards
Moritz
 
  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    Update asset lifecycle state with Powerautomate - not allowed for field 'MaintenanceAssetTypeId'
    In my opinion, the system shouldn't complain about it, because MaintenanceAssetTypeId is bound to a read-only data source and therefore it'll never be updated. But I guess that it looks at AllowEdit property of the field, which is set to Auto and it effectively gets the value No from the table.
    I think you'll need to create a data entity extension and change properties of MaintenanceAssetTypeId field. Either Mandatory=No or AllowEdit=Yes. I guess that MaintenanceAssetTypeId is required when creating a new field record, therefore it would be better to keep it mandatory and allow editing instead.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans