It seems that Matteo's input contains all the input fields.

I also get this error although the field in the message is not null - and 
it shows in the "report" of the resource as well..

   Yuval 

בתאריך יום רביעי, 24 באוקטובר 2018 בשעה 19:27:45 UTC+3, מאת Adam Cox:

> Matteo, as Ryan mentioned, this is a warning, so you should realize that 
> in a great number of cases with perfectly valid and complete import data, 
> you will still get it.
>
> For example, consider this csv:
>
> [image: image.png]
>
> This is the correct way to import a resource that has two components but 
> just one name. If "Name" is used in the resource descriptors function, then 
> you will get the warning for line 2, because there is no Name value in that 
> line. Ideally, it would make sense for the warning to be suppressed in this 
> example, because resource 1 does in fact have a name, but as far as I can 
> tell, that warning is evaluated line-by-line.
>
> Hope that helps,
> Adam
>
> On Tue, Oct 23, 2018 at 9:23 AM Ryan Anderson <[email protected] 
> <javascript:>> wrote:
>
>> Hi Matteo,
>>
>> This is just a warning to let you know that you are not importing some 
>> data that participates in a display value function and the display name for 
>> a resource might not appear as expected. For instance, a Person Resource 
>> Model display name might be composed of 'Person Name' and 'Person Name 
>> Type' and you are only importing one of those fields.
>>
>> It is not an error and the rest of your data should have imported 
>> correctly assuming you did not receive any actual errors. If you would like 
>> to fix the warning, here are two ways to do so:
>>
>> 1. If you have the additional data that participates in the display value 
>> function map it in the mapping file and import it.
>>
>> 2. If you do not have the additional data then you can modify the display 
>> value function to not use that data. You can do this in the function 
>> manager of each resource model.
>>
>> Hope this helps.
>>
>> Ryan
>>
>>
>> On Oct 23, 2018 at 4:30 AM, <Matteo Orlando <javascript:>> wrote:
>>
>> I created a resource model and downloaded the mapping that is the 
>> following one
>> {
>>     "resource_model_id": "60735865-d6a4-11e8-9a77-28c2dd245e5f", 
>>     "resource_model_name": "Heritage Building", 
>>     "nodes": [
>>         {
>>             "arches_nodeid": "e6e4d9ac-d6a6-11e8-9a77-28c2dd245e5f", 
>>             "arches_node_name": "Address", 
>>             "file_field_name": "Address", 
>>             "data_type": "string", 
>>             "export": true
>>         }, 
>>         {
>>             "arches_nodeid": "2390e01e-d6a5-11e8-9a77-28c2dd245e5f", 
>>             "arches_node_name": "Name", 
>>             "file_field_name": "Name", 
>>             "data_type": "string", 
>>             "export": true
>>         }, 
>>         {
>>             "arches_nodeid": "cf5094b8-d6a4-11e8-9a77-28c2dd245e5f", 
>>             "arches_node_name": "Place", 
>>             "file_field_name": "Place", 
>>             "data_type": "geojson-feature-collection", 
>>             "export": true
>>         }
>>     ]
>> }
>>  
>> Than I created the .csv file with an instance of the resource that  is
>> ResourceID,Address,Name,Place
>> 1,Corso Duca degli Abruzzi,Politecnico di 
>> Torino,"POLYGON((7.662824177554853 45.06315772504921,7.66140797119499 
>> 45.0636275631809,7.662008786014326 45.06447629324387,7.661171936801679 
>> 45.064749096659526,7.65889742355705 45.06162693531988,7.660184883884199 
>> 45.06117223740586,7.6608929870641305 45.06215741164907,7.661837124637373 
>> 45.0618391264422,7.662824177554853 45.06315772504921))"
>>
>>  Finally I tryed to execute the command 
>> python manage.py packages -o import_business_data -s 
>> /home/matteo/Projects/test1.csv -ow OVERWRITE -c 
>> /home/matteo/Projects/HeritageResourceModel.mapping
>>
>> But i keep obtaining the error
>> Tue Oct 23 04:29:30 2018 WARNING: Place is null or not mapped on rows 2,2 
>> and participates in a display value function.
>> Tue Oct 23 04:29:30 2018 WARNING: Name is null or not mapped on rows 2 
>> and participates in a display value function.
>> Tue Oct 23 04:29:30 2018 WARNING: Address is null or not mapped on rows 
>> 2,2 and participates in a display value function.
>>
>> How can i solve this problem?
>>
>>
>> -- 
>> -- To post, send email to [email protected] <javascript:>. To 
>> unsubscribe, send email to [email protected] <javascript:>. For 
>> more information, visit 
>> https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> -- To post, send email to [email protected] <javascript:>. To 
>> unsubscribe, send email to [email protected] <javascript:>. For 
>> more information, visit 
>> https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to