{"action":"opened","issue":{"url":"https://api.github.com/repos/unicef/etools-partner-reporting-portal/issues/935","repository_url":"https://api.github.com/repos/unicef/etools-partner-reporting-portal","labels_url":"https://api.github.com/repos/unicef/etools-partner-reporting-portal/issues/935/labels{/name}","comments_url":"https://api.github.com/repos/unicef/etools-partner-reporting-portal/issues/935/comments","events_url":"https://api.github.com/repos/unicef/etools-partner-reporting-portal/issues/935/events","html_url":"https://github.com/unicef/etools-partner-reporting-portal/issues/935","id":365602934,"node_id":"MDU6SXNzdWUzNjU2MDI5MzQ=","number":935,"title":"Sync issue from PMP to PRP","user":{"login":"robertavram","id":5633041,"node_id":"MDQ6VXNlcjU2MzMwNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/5633041?v=4","gravatar_id":"","url":"https://api.github.com/users/robertavram","html_url":"https://github.com/robertavram","followers_url":"https://api.github.com/users/robertavram/followers","following_url":"https://api.github.com/users/robertavram/following{/other_user}","gists_url":"https://api.github.com/users/robertavram/gists{/gist_id}","starred_url":"https://api.github.com/users/robertavram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertavram/subscriptions","organizations_url":"https://api.github.com/users/robertavram/orgs","repos_url":"https://api.github.com/users/robertavram/repos","events_url":"https://api.github.com/users/robertavram/events{/privacy}","received_events_url":"https://api.github.com/users/robertavram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-01T19:14:24Z","updated_at":"2018-10-01T19:14:24Z","closed_at":null,"author_association":"MEMBER","body":"when synching PDs in Iraq I'm getting:\r\n```\r\n[2018-10-01 19:09:20,951: WARNING/Worker-1] Processing PD: 452\r\n[2018-10-01 19:09:21,142: WARNING/Worker-1] {'non_field_errors': ['The fields title, p_code must make a unique set.']}\r\n[2018-10-01 19:09:21,148: ERROR/MainProcess] Task unicef.tasks.process_programme_documents[3fc98500-4973-49d0-92a8-48b86ba9350e] raised unexpected: ValidationError({'non_field_errors': ['The fields title, p_code must make a unique set.']},)\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/site-packages/celery/app/trace.py\", line 240, in trace_task\r\n    R = retval = fun(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/celery/app/trace.py\", line 438, in __protected_call__\r\n    return self.run(*args, **kwargs)\r\n  File \"/code/django_api/apps/unicef/tasks.py\", line 419, in process_programme_documents\r\n    'p_code': l['pcode'],\r\n  File \"/code/django_api/apps/unicef/tasks.py\", line 56, in process_model\r\n    serializer.is_valid(raise_exception=True)\r\n  File \"/usr/local/lib/python3.6/site-packages/rest_framework/serializers.py\", line 245, in is_valid\r\n    raise ValidationError(self.errors)\r\nrest_framework.exceptions.ValidationError: {'non_field_errors': ['The fields title, p_code must make a unique set.']}\r\n```\r\nwhen I checked the set of locations in PMP, it seems like there is no two locations with the same name or pcode.. On the PD there are two indicators with the same location set"}}
{"actor":{"display_login":"robertavram"}}