Netlogo- not a valid property name in gis extension - netlogo

I have imported my shape file via gis extension and want to transfer attribute to my patch. for some of the properties it works, but for some of them I get this error:
Extension exception: shima is not a valid property name
error while observer running GIS:APPLY-COVERAGE
called by procedure COLOR-PATCHES
called by Button 'color-patches'
Can anybody help me?

I have noticed that if define a name with capital letters for the properties, there won't be any error.

Related

TYPO3: custom extension - "The extension name must not be empty" error

I have upgraded TYPO3 version from 9 to 10. But my custom extensions throwing
(1/1) #1239891990 InvalidArgumentException
The extension name must not be empty
error while I am trying to re-activate those.
Thank you in advance
Please check your extension for the usage of one of these methods:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin()
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin()
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule()
Most probably you have to search in ext_localconf.php, ext_tables.phpor any file in Configuration/TCA/Overrides.
The first parameter of each of these methods is the extension name (in UpperCamelCase) or the extension key (in lower_underscore). This is missing according to your error message.
Maybe your extension relies on $_EXTKEY. Starting with TYPO3 10 LTS the variable $_EXTKEY isn't filled with the extension key anymore. Solution: use the hardcoded extension key within ext_tables.php and ext_localconf.php. See the documentation for details.

How to add a custom library using add_block?

I created a custom library. This library contains only one subsytem block named RADAR. I am trying to use add_block and add this subsytem. Without any error the simulink file opens but the block does not appear.
This is how I load my library.
load_system('libdeneme');
And these are some of the code lines I tried.
add_block('simulink/libdeneme/RADAR','autoCreateDeneme')
add_block('simulink/libdeneme/RADAR','autoCreateDeneme')
add_block('libdeneme/RADAR','autoCreateDeneme')
add_block('libdeneme/RADAR',)
The source needs to be the library name then the name of the block in the library. Your first 2 lines don't work because your library is not the simulink library. But the source name in your last 2 attempts look right.
The destination needs to be the name of the model followed by the name to give the new block. Neither of your examples follow that format. (Surely the last example you give throws an error as it is invalid MATLAB syntax?)
You want something like
add_block('libdeneme/RADAR','nameOfModelToCopyTo/nameToGiveBlockInModel');

Watson Knowledge Studio - Pre-Annotate error

When I try to run a Annotation in Watson Knowledge Studio I get the below error. "PREANNOTATE: The process failed. The selected documents were not pre-annotated because they contain annotations that were added by humans which would be invalidated as a result." What could be the reason.
It seems your documents were already assigned in Human Annotation Task and Human Annotator has already started annotation work. When such working document set is specified as a target for pre-annotation, WKS shows the error message to avoid losing the current work by Human Annotator.
Could you please choose original imported Document set as the target for pre-annotation, or create another document set from the imported set that does not contains any HA work.

AEM: How to find location of Exception on Sightly/HTL page?

I'm working on a fairly large HTL page, which is throwing a:
java.lang.IllegalArgumentException: Invalid property name
How can I find the location in the HTL that's causing this?
UPDATE
The full trace is too big for SO. I saved it here: http://pastebin.com/xajiY5MD
Here's the first few lines:
Invalid property name
Cannot serve request to /content/XXXX/en-us/cart.html in /apps/XXXXcommerce/components/content/cart/cart.html
Exception:
java.lang.IllegalArgumentException: Invalid property name
at org.apache.sling.scripting.sightly.impl.utils.RenderUtils.getProperty(RenderUtils.java:151)
at org.apache.sling.scripting.sightly.impl.utils.RenderUtils.resolveProperty(RenderUtils.java:143)
at org.apache.sling.scripting.sightly.apps.XXXXcommerce.components.content.cart.SightlyJava_cart.render(SightlyJava_cart.java:512)
at org.apache.sling.scripting.sightly.impl.engine.runtime.RenderUnit.render(RenderUnit.java:54)
This comes when you are using a property which is:
1. not defined in dialog
2. You are using it in a wrong manner(Check for double quotes vs single quotes)
3. If you are using java, that property is not present in the java class and you are trying to access it.
Pls check and respond if thats no the case and the resolution too to help others.
java.lang.IllegalArgumentException: Invalid property name without a property name apparently occurs when indexing an array using an empty value (in my case the object containing the index had gone out of scope)

Fully qualified name with dollar sign in SSDT project

I was working on a tsql project, and I have noticed that the existing code used a syntax that I have not seen before. They have put a dollar sign in front of the database name for fully qualified address.
Here is one example :
SELECT c.AccountCode, FROM **[$(SmartAdmin)]**.dbo.Customers c
If I rename the database name as SmartAdmin.dbo.Customers, Visual Studio throws error says "contains an unresolved reference to an object".
It appears to be a Visual Studio related thing, can anyone explain what is this and
whether I can remove it.
Please see the attached screenshots, the last one comes from project solution file.
The [$(SmartAdmin)] syntax is used in an SSDT project to reference objects in other databases. To be precise, it is SQLCMD syntax.
If you have a database reference to SmartAdmin, and if the reference is set up so that [$(SmartAdmin)] properly references it, then that is not the problem. It looks like the problem is the other two references to [SmartAdmin]. Change them to look like [$(SmartAdmin)].dbo.whatever.
Example of why these references are useful: I just edited a stored procedure I had in SSDT to misspell a column name. Within seconds, the column name was underlined in red. I then deleted the database reference the column name depended on. The red underline went away. I added the database reference back, and the column was once again underlined in red. I corrected the column name, and the red underline went away.
Without the database reference, I would have had to wait until the stored procedure was deployed, or possibly executed, to see the error. With the database reference, I found out about the problem in the editor. Just like code.
It appears to me that your database is actually called $(SmartAdmin)
As the error suggests "contains an unresolved reference to an object". which means when you change the database name to SmartAdmin, it cannot find a database with this name on server.
If you want to change the database name you will need to execute the following statement and then you will be able to use that name in your statements.
USE master;
GO
EXEC sp_renamedb '$(SmartAdmin)', 'SmartAdmin';
GO
USE SmartAdmin; --<-- Now you will be able to connect to this database
GO -- without the dollar ($) sign.
This issue relates to Database Project External Database References. When you add another solution to a database project, you can specify the "Database Variable Name", in my case, it is $(SmartAdmin).
Please see this link for more information.
Thanks everybody for answering my question.