Question

Lookup not found via OData query

Hi all,

 

I just created a new lookup using the section wizard. I can see the lookup in the "Lookups" section, and actually added values to it. So far so good. But when I try to get the values from that lookup using an OData query (from an external app), I get a 404 error. I'm doing a GET of "/0/odata/WlfPrescriptionOrigin" - i previously authenticated via "/ServiceModel/AuthService.svc/Login".

 

404 - File or directory not found.



The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

 

I can successfully query "/0/odata/Contact?$top=1" and it works as expected:

 

 

Any thoughts on how to fix this?

Like 0

Like

3 comments
Best reply

Open the object and do a publish and compile. The wizards might not have run the compile for OData entities. Once you compile the object it should show via OData. 
Ryan

Open the object and do a publish and compile. The wizards might not have run the compile for OData entities. Once you compile the object it should show via OData. 
Ryan

Ryan Farley,

Thanks Ryan. I see what's going on. There's a previous error that is coming back to haunt me. I see the following error in the system messages: "OData entities compilation errors occurred. Please recompile the app via Configuration section. Check log file for details"

 

When i tried to do the publish and compile, i am back to an error with "VwSysProcess" (https://community.creatio.com/questions/compilation-error-type-or-namespace-name-vwsysprocess-could-not-be-found) . 

 

I tried a couple of days ago to regenerate the source code, but the process never completed. Since it was not preventing me from moving forward, i just continued, but now it seems this is actually becoming a real problem.

 

I am giving it a shot at regenerating code again now...

Ryan Farley,

Closing the loop here. I was able to regenerate source code for all schemas, and build successfully. After that, the lookup started showing up in OData. Thanks!

Show all comments