PP & PET Material #382
Replies: 5 comments 2 replies
-
In working to document a different issue wrt displaying products, I created a material 'mat1' in a project I saved and later deleted via the website. However, I can no longer retrieve 'mat1' via search. The code below was originally run to create a project which was saved and deleted. Upon running the code again, trying to fetch 'mat1' I get an error message. As we can see in the error message, it looks like a matching node was found, but an error arise in dumping/parsing the json.
Output after deleting project and running again:
We see Any guidance would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi @c-heat16 , Would you be available to have a meeting to go over the issues together? I originally wrote out a longer message that I was going to write here, but I think that it'll probably cause more confusion than help because it could be one of several things, and I'm thinking that if we go through it together it'll probably be easier and faster. Would you be up for that? |
Beta Was this translation helpful? Give feedback.
-
Is there a minimum character limit for material names? I had trouble retrieving a 'PP' material, and am having the same issue with 'He', 'N2', and 'Ar' - carrier gasses. However, simply adding an underscore to the material name alleviates the issue. script to reproduce:
Error on second call:
|
Beta Was this translation helpful? Give feedback.
-
hi @c-heat16 thank you so much for letting me know. I think this might be an API error. I think the issue is that the API has a DB schema that has a minimum length of 2 for the name. DB Schema "NameField": {
"$id": "NameField",
"maxLength": 2048,
"minLength": 2,
"pattern": "^[^^<>|$]+$",
"type": "string"
} I reported this to the API and I'll report back when I have an answer.
|
Beta Was this translation helpful? Give feedback.
-
@c-heat16 I talked to the backend software engineer and he said that all material names must be at least 3 characters long and that is something that we will not be changing for now |
Beta Was this translation helpful? Give feedback.
-
Whenever I try to save a project with a material named 'PP' I get the following error:
If I try to retrieve this material via
I get the following error:
I can create a material named 'PET' (
pet = cript.Material(name='PET', identifier=[{'names': ['PET']}])
) and save it with a project, but when I try to retrieve it viaI get the following error:
The retrieval works for materials with different names, however. I have deleted all of my projects in 'My CRIPT' - which says it deletes child nodes - but the issue persists. Can you please advise how I can use these materials?
(updated to try and improve formatting)
Beta Was this translation helpful? Give feedback.
All reactions