Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Invalid @odata.id and @odata.editLink for BillOfMaterialsVersionsV3 entity

(1) ShareShare
ReportReport
Posted on by 9
Hi,
 
I have been trying to update the entity 'BillOfMaterialsVersionsV3' in MSDynamics365 Finance and Operations through odata olingo.
However, I found that the edit link and id given for this entity is invalid. It gives HTTP Response as 400 with bad request as shown below:
 
The invalid @odata.editLink and @odata.id retrieved through MSDynamics365 are:
/@odata.id/: /https://trial-0zyrz7.trial.operations.dynamics.com/data/BillOfMaterialsVersionsV3(dataAreaId='usmf',ManufacturedItemNumber='4401',BOMId='000021',ProductionSiteId='1',ProductConfigurationId='',ProductColorId='Green',ProductSizeId='',ProductStyleId='',ProductVersionId='',IsActive=Microsoft.Dynamics.Ax.Xpp.NoYes'Yes',ValidFromDate=1900-01-01T12:00:00Z,FromQuantity=1)/

/@odata.editLink/: /./BillOfMaterialsVersionsV3(dataAreaId='usmf',ManufacturedItemNumber='4401',BOMId='000021',ProductionSiteId='1',ProductConfigurationId='',ProductColorId='Green',ProductSizeId='',ProductStyleId='',ProductVersionId='',IsActive=Microsoft.Dynamics.Ax.Xpp.NoYes'Yes',ValidFromDate=1900-01-01T12:00:00Z,FromQuantity=1)/
 
Also, here the observation is that the edit link is starting with /.// characters, which is not usually observed in any entity, is there any significance for the same.
 
 
How can we get correct @odata.editLink for this entity, as we need it to perform update and delete operation through odata olingo.
Note: we have also tried replace the IsActive attribute value with /Microsoft.Dynamics.Ax.Xpp.NoYes'Yes'/ inorder to have correct enum value, but still no luck.
Any lead will be helpful.
Thanks in Advance.
 
Yashodhara
  • Invalid @odata.id and @odata.editLink for BillOfMaterialsVersionsV3 entity

    Hi Bharani,

    Please ignore the earlier reply, due to some glitch it was not posted properly.

    We are trying to update the entity using a PATCH request from POSTMAN, for this as per my understanding we need to uniquely identify the record using the odata.id  (which contains all the entity key attribute and dataAreaID ) as shown below :

     

     /@odata.id/: /https://trial-0zyrz7.trial.operations.dynamics.com/data/BillOfMaterialsVersionsV3(dataAreaId='usmf',ManufacturedItemNumber='4401',BOMId='000021',ProductionSiteId='1',ProductConfigurationId='',ProductColorId='Green',ProductSizeId='',ProductStyleId='',ProductVersionId='',IsActive=Microsoft.Dynamics.Ax.Xpp.NoYes'Yes',ValidFromDate=1900-01-01T12:00:00Z,FromQuantity=1)/

    When we try to hit this url from browser we get the This actually throws 400 HTTP error as mentioned above.

    Am I missing anything or is there any other way to update using patch without an odata.id ?

    Regards

    Yashodhara

  • Invalid @odata.id and @odata.editLink for BillOfMaterialsVersionsV3 entity
    Hi Bharani,
    We are trying to update the entity using a PATCH request from POSTMAN, for this as per my understanding we need to uniquely identify the record using the odata.id  (which contains all the entity key attribute and dataAreaID ) as shown below 
    When we try to hit this url from browser, it actually throws 500 HTTP error as mentioned above.

    Am I missing anything or is there any other way to update using patch without an odata.id ?

     
    Any help will be appreciated.
     
    Thanks
    Yashodhara
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    Invalid @odata.id and @odata.editLink for BillOfMaterialsVersionsV3 entity
    Hi,
     
    If you want to update an entity, have you tried the same from postman using patch/post request?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans