[Patched] /tasks endpoint returns 404 "Quote not found"

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
gavinhodge
Posts: 28
Joined: Mon Apr 27, 2020 1:27 am

[Patched] /tasks endpoint returns 404 "Quote not found"

Post by gavinhodge » Thu Jul 09, 2020 6:51 am

Hi there,

I'm trying to fetch tasks using the API. The first few pages worked fine, but when reaching a certain page we get a 404 with this message:

Code: Select all

{"errors":[{"path":null,"message":"Quote not found.","value":null}]}
The URL in question is

Code: Select all

/api/v1.0/companies/{companyId}/tasks/?orderby=DateModified&pageSize=100&page=8&columns=ID%2CSubject%2CAssignedTo%2CAssignees%2CAssignedToCustomer%2CCompletedBy%2CAssociated%2CIsBillable%2CShowOnWorkOrder%2CDescription%2CStartDate%2CDueDate%2CCompletedDate%2CNotes%2CStatus%2CPriority%2CCategory%2CEstimated%2CActual%2CParentTask%2CSubTasks%2CCustomFields%2CPercentComplete%2CDateModified&display=all
Any clues?

Gavin.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: /tasks endpoint returns 404 "Quote not found"

Post by Muqeet » Thu Jul 09, 2020 7:17 am

Hi Gavin,

I have looked into the issue, it caused by a non-existent quote referenced to a task. We will patch this issue by not loading the associations when not exist anymore.

Thanks.
Muqeet
API Developer | simPRO Software Group
gavinhodge
Posts: 28
Joined: Mon Apr 27, 2020 1:27 am

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by gavinhodge » Fri Jul 10, 2020 3:42 am

Thanks Muqeet, much appreciated.
johann
Posts: 51
Joined: Tue Oct 16, 2018 11:19 pm

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by johann » Mon Jul 13, 2020 4:54 am

Hi Muqeet,

Will this patch be in the next release, and when is the next release due? (actually is there a list of expected release dates anywhere?)

Thanks!
Johann
Wink Reports
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by Muqeet » Mon Jul 13, 2020 5:21 am

Hi Johann,

The patch will be in next simPRO release 20.3.2 which is due to be released in two weeks (26th july approx.). simPRO builds are updated in stages, so you may be updated to the latest version up to a week after the initial release.

You can get more details about simPRO releases from link below.

https://helpguide.simprogroup.com/Conte ... -Notes.htm
Muqeet
API Developer | simPRO Software Group
gavinhodge
Posts: 28
Joined: Mon Apr 27, 2020 1:27 am

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by gavinhodge » Mon Aug 03, 2020 5:44 am

Still getting similar but different errors after the update.

Usual error returned:

Code: Select all

{"errors":[{"path":null,"message":"Job not found.","value":null}]}
This one has also been seen for one customer:

Code: Select all

{"errors":[{"path":null,"message":"API column \"mdl.date_modified\" is not defined in builder \"SimPRO\\RestAPI\\Builder\\Tasks\\Tasks\".","value":null}]}
Sample URL of API request:

Code: Select all

/api/v1.0/companies/{companyId}/tasks/?orderby=DateModified&pageSize=100&page=1&columns=ID%2CSubject%2CAssignedTo%2CAssignees%2CAssignedToCustomer%2CCompletedBy%2CAssociated%2CIsBillable%2CShowOnWorkOrder%2CDescription%2CStartDate%2CDueDate%2CCompletedDate%2CNotes%2CStatus%2CPriority%2CCategory%2CEstimated%2CActual%2CParentTask%2CSubTasks%2CCustomFields%2CPercentComplete%2CDateModified&display=all
DM me if you need the subdomain / company id.

Gavin.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by Muqeet » Mon Aug 03, 2020 11:28 pm

Please check your private message.
Muqeet
API Developer | simPRO Software Group
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by Muqeet » Tue Aug 04, 2020 6:19 am

Patch for this bug did not release with 20.3.2, apologies for that. It has now been scheduled to get released with 20.3.3
Muqeet
API Developer | simPRO Software Group
johann
Posts: 51
Joined: Tue Oct 16, 2018 11:19 pm

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by johann » Thu Aug 27, 2020 1:31 am

Hi Muqeet,

We've tried to run this again after the latest patch and while "Quote not found" seems to be fixed we're still getting "Job not found" errors.

The error:

Code: Select all

{"errors":[{"path":null,"message":"Job not found.","value":null}]}
Sample of the url:

Code: Select all

/api/v1.0/companies/{companyId}/tasks/?orderby=DateModified&pageSize=100&page=1&columns=ID%2CSubject%2CAssignedTo%2CAssignees%2CAssignedToCustomer%2CCompletedBy%2CAssociated%2CIsBillable%2CShowOnWorkOrder%2CDescription%2CStartDate%2CDueDate%2CCompletedDate%2CNotes%2CStatus%2CPriority%2CCategory%2CEstimated%2CActual%2CParentTask%2CSubTasks%2CCustomFields%2CPercentComplete%2CDateModified&display=all
Can provide the company and domain via DM if needed - but I suspect it will be a very similar issue to the Quotes one.

Thanks,
Johann
Wink Reports
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: [API-817] /tasks endpoint returns 404 "Quote not found"

Post by Muqeet » Thu Aug 27, 2020 1:35 am

Please send me the DM anyway with details, thanks.
Muqeet
API Developer | simPRO Software Group
Post Reply