Unable to PATCH job Status

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
wildhart
Posts: 32
Joined: Tue May 11, 2021 8:54 pm

Unable to PATCH job Status

Post by wildhart » Fri Mar 17, 2023 11:02 pm

This is an intermittent problem, but often when I PATCH a job to change the Status, the job's status does not get changed.

Here's an example:

sending the PATCH
image (4).png
image (4).png (113.6 KiB) Viewed 16497 times

GET the job:
image (5).png
image (5).png (123.51 KiB) Viewed 16497 times
As you can see, the job Status is still 75.
wildhart
Posts: 32
Joined: Tue May 11, 2021 8:54 pm

Re: Unable to PATCH job Status

Post by wildhart » Fri Mar 17, 2023 11:04 pm

I can prove the rest of the PATCH is working by changing the Name:
image (6).png
image (6).png (109.92 KiB) Viewed 16496 times

The Status still hasn't changed:
image (7).png
image (7).png (126.41 KiB) Viewed 16496 times

Please can you investigate this issue?
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Unable to PATCH job Status

Post by Sindre » Mon Mar 20, 2023 10:01 pm

Hi wildhart,
Thank you for the examples and for reporting this.

I was able to reproduce the behaviour you describe. It wasn't consistent so some statuses were updated and others not. I will do some more investigations on this issue so we can raise a ticket for this.

Regards
Sindre
API Developer | Simpro Software Group
wildhart
Posts: 32
Joined: Tue May 11, 2021 8:54 pm

Re: Unable to PATCH job Status

Post by wildhart » Thu Mar 23, 2023 7:52 pm

Hi @Sindre,

How are you getting on with this? Do you have a timeframe for getting this fixed?

It's a fairly fundamental bug and is blocking us from releasing new features to our users, and possibly causing your other API users issues they may not be aware of...
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Unable to PATCH job Status

Post by Sindre » Fri Mar 24, 2023 12:42 am

Hi,
We are not able to give a specific time frame for when a fix is being released. We are continually prioritising our work based on what will give the greatest benefit to our API users.

Regards
Sindre
API Developer | Simpro Software Group
paul-fortix
Posts: 1
Joined: Fri Mar 24, 2023 2:10 am

Re: Unable to PATCH job Status

Post by paul-fortix » Fri Mar 24, 2023 2:18 am

Hi,

We are also experiencing the same issue when updating quotes where the status updates are ignored with we get back the 204 response. The worst part is we get a webhook event back which causes our software to revert the status internally. Overall this is causing the users affected by this issue a lot of problems and frustration.

Any fix or workaround would be appreciated.

Thanks
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Unable to PATCH job Status

Post by Sindre » Mon Mar 27, 2023 5:34 am

Hi wildhart,
The status codes in simPRO are ordered in a hierarchy in which they usually progress from top to bottom in the setup.

If you try to patch a job with a status to one with a lower status you can't do this unless the option "Ignore status priority" has been activated on the status code.

If you patch to a status code higher in the hierarchy you should have no problems.

The API is currently returning 204 even if a status code is not being updated which I understand is not expected behaviour for the user and we will look at this.

If you want me to give some examples and do some more tests please send me a private message with your build details.

Regards
Sindre
API Developer | Simpro Software Group
wildhart
Posts: 32
Joined: Tue May 11, 2021 8:54 pm

Re: Unable to PATCH job Status

Post by wildhart » Mon Mar 27, 2023 11:06 pm

Hi Sindre,

Thank you for the explanation. Now we know the rules, we can change the "Ignore status priority" on that status and it works.

Yes, I agree that the 204 response is not expected in this circumstance - it would be helpful if it responded with an error and a helpful message.
Post Reply