I have a project in AppBuilder that rejected importing a dataservice (even though it imported fine to the data service repository) due to a JSON path being more than 64 character (apparently a secret limitation).
Now, having fixed the JSON body to have a shorter path, I still can not upload the new dataservice as the original version is still stuck in the validator and fails with the old JSON path specified.
In fact, I uploaded a completely different data service (using an .iads file) and that is rejected because of the initial dataservice that won't pass validation.
I can't seem to find the original in the databases anywhere, and I'm not familiar with where AppBuilder or the grid might be caching files/objects like this. But somehow I need to clear it out so I can continue adding more dataservices.
I was able to create a new project and upload the dataservice just fine, and I was able to add it to the root repository as well. It's just stuck in one particular project.
This is the error I found in the AppBuilder logs:
error: instance failed to match all required schemas (matched only 1 out of 2)
level: "error"
schema: {"loadingURI":"resource:/schemas/DatasourceSchema.json#","pointer":""}
instance: {"pointer":""}
domain: "validation"
keyword: "allOf"
matched: 1
nrSchemas: 2
reports: {"/allOf/0":[{"level":"error","schema":{"loadingURI":"resource:/schemas/DatasourceSchema.json#","pointer":"/allOf/0"},"instance":{"pointer":""},"domain":"validation","keyword":"oneOf","message":"instance failed to match exactly one schema (matched 0 out of 2)","matched":0,"nrSchemas":2,"reports":{"/allOf/0/oneOf/0":[{"level":"error","schema":{"loadingURI":"resource:/schemas/DatasourceParameterObject.json#","pointer":"/properties/key"},"instance":{"pointer":"/inputParameters/16/key"},"domain":"validation","keyword":"maxLength","message":"string "$.ItemMaster.IMH.SupSpecs[0].PkgingUnit.SupplierParty.PartyIDs.ID" is too long (length: 65, maximum allowed: 64)","value":"$.ItemMaster.IMH.SupSpecs[0].PkgingUnit.SupplierParty.PartyIDs.ID","found":65,"maxLength":64}],"/allOf/0/oneOf/1":[{"level":"error","schema":{"loadingURI":"resource:/schemas/DatasourceBI.json#","pointer":"/properties/typedef"},"instance":{"pointer":"/typedef"},"domain":"validation","keyword":"enum","message":"instance value ("generic") not found in enum (possible values: ["BI"])","value":"generic","enum":["BI"]}]}}],"/allOf/1":[]}