can anyone help me with this?
Actions on google deployment
I already removed this pattern and checked several times if it exists somewhere else. Not to fine.
Please help, thank you.
Kind regards
Check if in any of your attempts, you have correctly defined the names of the variables, more when working in languages, remember that all must have the same variable name when selecting an entity.
For example, I once had the same error because one of the variables was different from the other variables because it was not spelled correctly.
It is also the case that if instead of adding a training phrase, you add an entity directly, a common mistake is that this entity has no variable assigned to it.
It doesn't necessarily have to be the same name as the entity, but it does have to be in common with the phrases you're training or variables you're already using, otherwise dialogflow will throw you the error that that entity is not linked to any variable or query.
Related
The ensure_signed function of pallets/template/lib.rs contains a parameter named origin of type OrginFor<>. I have been looking inside various projects and all I see is doing ensure_signed(origin)?.
My question is how actually should I get something like public key or wallet address from that origin value. I believe something must be inside Signed(AccountId) variant. But in test files of several examples and tutorials all i see is they simply pass Origin::Signed(1). What am I supposed to do with that 1?
I am pretty starting out in these blockchain things so any kind of knowledge is highly appreciated
I created a very simple agent on dialogflow. Every now and then, even using static responses (where only the session ID changes), the application crashes (both on Google Assistant and in the simulator).
On the logs I find the message in question: "MalformedResponse at expected_inputs [0]: Responses must provide at least one possible if this is not the final response. What does it mean?".
I don't understand what it means.
Could anyone help me?
I'm having the same problem. That i've noted is that this problem doesn't ocurre every time. The behavior is really unstable.
I'm using 2 required parameters in the intent. I don't know if that has something to do with the problem.
MalformedResponse at expected_inputs[0].input_prompt: 'input_prompt' is empty
MalformedResponse at expected_inputs[0]: Responses must provide at least one possible intent if this is not the final response
The problem, appears to be caused when you use own parameters, not when use sys. parameters.
Google answer me the following:
"Hi Alberto,
This issue has already been escalated to our engineering team. You are correct about required parameters causing the problem. Our engineering team is working thoroughly to resolve this since it is affecting some other AoG projects as well. "
I was facing the exact same issue when I was using custom entities as input parameters to my action.
I was asking for 2 custom parameters and one system (sys.color) and triggering the same with input prompts.
I found a workaround for that by taking all 3 in separate intents and using the response of the previous intent as a trigger to enter the next parameter, also by making the training phrases as sample values of the custom parameter.
I am still in contact with Dialogflow Suppport and waiting for bug fix but it works for now.
I'm currently trying to use the built in entity '#sys.zip-code' from DialogFlow (formerly API.AI) for capturing Zip Codes. However so far it does not seem to recognize any actual zipcodes except those which I explicitly set through training. It also does not recognize the '5 digit' pattern as a possible match if #sys.phone-numbers is used in another intent (ex: 54545 gets recognized as a phone number, rather than a zip).
Should I upload a list of known zipcodes through the training section to get this working? Or is there something I'm missing from the built in functionality? Haven't seen a ton of info online on how to best utilize this entity, so figured I'd ask here before coming up with a custom solution.
Thanks in advance!
I think the best way to prompt a user when the bot says something like "could I get your name and zip code? ".The intent which i have created contains multiple combinations of “User says”.They are as below
#"#sys.given-name #sys.zip-code"
#"#sys.zip-code #sys.given-name"
#"#sys.given-name"
#"#sys.zip-code"
and I also have required Parameters setup to pick these values with prompt messages.
So I have attached a picture for this which i have iterated
I'm just trying to find a way to access the name property of an Area element inside Revit Python Shell, tried looking on Jeremy Tammik's amazingly informative blog, tried AUGI, Revit API docs, been looking for 2 days now...
Tried accessing via a bunch of ways, FilteredElementsCollector(doc).OfCategory(BuiltInCategory.OST_Areas), tried by Area class, tried through AreaTag, every single time I get an error under every circumstance and it's driving me nuts, it seems like such a simple issue that I can't seem to grasp!
EDIT: Also tried by element id, through tags, through area schemes, nada, no go...
Can anyone please tell me how to access this property via RPS?
I would say two things:
areaObject.LookupParameter("Name")
areaObject.GetParameters("Name")
...are valid methods. Please notice how I used GetParameters() NOT GetParameter(). There are some drawbacks to using either one of the two. The lookup method will return FIRST parameter that matches the name which in many cases might be a different parameter for different elements. It's not very reliable.
GetParameters() method will return them all if there are multiple so then you have to deal with a List<Parameter> rather than a single object that you can extract your value from.
I would personally recommend to use areaObject.get_Parameter(BuiltInParameter.ROOM_NAME) method to extract a Name value from Area object. The BuiltInParameter always points at the same parameter, and will reliably return just that one parameter. Here's a little more details about these methods:
http://www.revitapidocs.com/2018/4400b9f8-3787-0947-5113-2522ff5e5de2.htm
To answer my own question, I actually never thought of looking through the code of other Revit Python scripts... in this case of PyRevit, which is in my opinion far more eloquently written than RPS, raelly looking forward for their console work to be done!
Basically, I had mistakenly used GetParameter('parameter') instead of LookupParameter('parameter').
As I said, it was something stupidly simple that I just didn't understand.
If anyone has sufficient knowledge to coherently clarify this, please do answer!
Many thanks!
Maybe your issue is the same as this one ? :
https://groups.google.com/forum/#!searchin/RevitPythonShell/name|sort:relevance/revitpythonshell/uaxB1FLXG80/sdJNrTfoPuUJ
Your_Area.Name # throws error
Element.Name.GetValue(Your_Area) # works great
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I've created a plugin to create new records when a field changes on another record. I've set it all up but when I run it no records are created and CRM returns a SQL Timeout error. My code is below:
Entity contactSecurityRole = new Entity("sb_contactsecurityrole");
contactSecurityRole["sb_contactid"] = linkedContact;
contactSecurityRole["sb_contactportalsettingid"] = linkedContactPortalSetting;
contactSecurityRole["sb_portalsettingid"] = linkedPortalSetting;
contactSecurityRole["sb_portalsecurityroleid"] = linkedSecurityRole;
Service.Create(contactSecurityRole);
All the variables with a name starting "linked" are entity references to other entities, as the record is made up of lookup fields. I've done some checking and where it stops is where it comes to the actual Service.Create() part.
Can someone give me some tips on what to check so I can find why this is happening?
Update:
I've found the issue, and Greg was right it was a problem outside of the code I posted above. The issue was how I was setting up one of my "linked" variables, I was attempting to use a fetch request to retrieve a Guid for the record i needed to link to, from which I was setting up an entityreference.
The mistake I made was thinking that the fetch returned a Guid whereas it was actually returning an entityreference itself. So once I got that fixed the code ran through almost immediately. My guess was that because I was setting it up wrong, when it came to creating the entity CRM/SQL Server could enter the value so it returned the error.
Thanks for everybody's help with this
This will provide you some more clarity and the solution
I had this problem when I registerd the plugins in Sandbox in one of my CRM instances, which you should be doing, as its good practice. BUT try registering your plugins in non-Sandbox mode and than try creating a record, it might solve your issue.
It makes sense that any exception would be on the Service.Create(... part since this is the point at which the code tries to access CRM (and therefore the underlying SQL table).
Is it possible that you have other plug-ins registered which may be triggered during this process? Are you running on-premise or on-line?
I've found the issue, and Greg was right it was a problem outside of the code I posted above. The issue was how I was setting up one of my "linked" variables, I was attempting to use a fetch request to retrieve a Guid for the record i needed to link to, from which I was setting up an entityreference.
The mistake I made was thinking that the fetch returned a Guid whereas it was actually returning an entityreference itself. So once I got that fixed the code ran through almost immediately. My guess was that because I was setting it up wrong, when it came to creating the entity CRM/SQL Server could enter the value so it returned the error.
Thanks for everybody's help with this