[Released] Error patching job card after creation

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
zoes
Posts: 37
Joined: Sun Sep 13, 2020 2:05 am

[Released] Error patching job card after creation

Post by zoes » Wed Jan 06, 2021 10:13 am

Hi!

I am trying to create a job card and add blocks. When I try to add blocks during POST I get an error message saying that Blocks is not available during POST. So I have been trying to first create the job and then update it.

Creating the job works well:

Code: Select all

/api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID}/workOrders/
and creates a job with empty blocks but when I try to patch with the job ID immediately afterwards with:

Code: Select all

/api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID}/workOrders/{jobcard['ID']}
I receive:

Code: Select all

This job is currently opened by {Me}. Please try again later.
There is a similar post in the forum about this issue if it is indeed the same but doesn't seem to have a resolution.

http://apiforum.simprogroup.com/viewtop ... d+by#p2606
zoes
Posts: 37
Joined: Sun Sep 13, 2020 2:05 am

Re: Error patching job card after creation

Post by zoes » Wed Jan 06, 2021 10:35 am

Update: even if I put a sleep command for 50 seconds between making the job card and trying to add the blocks I still obtain a message that I am currently have the job open.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Error patching job card after creation

Post by Muqeet » Wed Jan 06, 2021 11:51 pm

It could be possible if you have the job opened in a browser. However I couldn't reproduce the issue on my end. Please send me your build URL and full job endpoint up to cost center, in a private message.
Muqeet
API Developer | simPRO Software Group
Post Reply