Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced Connecter Bundle - Family Export Profile #91

Open
prabhassharma opened this issue May 31, 2017 · 13 comments
Open

Enhanced Connecter Bundle - Family Export Profile #91

prabhassharma opened this issue May 31, 2017 · 13 comments
Assignees
Labels

Comments

@prabhassharma
Copy link

Hi,

We are working on Akeneo 1.7 and have installed the enhanced connecter bundle for PIMGento Export. The Attribute export works fine, however the family export profile creation fails.

The error I am getting is: pim_enhanced_connector.family_processor.locale.label - Value cannot be blank.

We have only one locale in our config, and that value is added (refer to screenshot).

Any help/ideas are highly appreciated.

Thanks.
family export

@jmleroux jmleroux self-assigned this May 31, 2017
@jmleroux jmleroux added the bug label May 31, 2017
@jmleroux
Copy link
Contributor

Hello @prabhassharma ,

thanks for reporting this bug. I will try to reproduce and i'll keep you updated.

Regards,
JM

@jmleroux
Copy link
Contributor

And btw, it seems linked to #90

@prabhassharma
Copy link
Author

Hi @jmleroux,

Yes its similar to #90, but in that issue the family export was giving the code and not the label. In my case I am unable to create the export profile.

Waiting for your inputs to proceed.

Thanks.

@jmleroux
Copy link
Contributor

Just one thing to check: from your screen i can tell that you didn't regenerate yours assets.
Could you clean your cache and regenerate ?

@prabhassharma
Copy link
Author

prabhassharma commented May 31, 2017 via email

@jmleroux
Copy link
Contributor

I was talking about Symfony assets 😉

image

@jmleroux
Copy link
Contributor

Could you please check with the last released v1.4.1 tag?

@prabhassharma
Copy link
Author

Hi @jmleroux ,
Thanks for the information, however after running the commands nothing has changed. Still the same error.

I will upgrade to the latest version and let you know ASAP.

Prabhas

@adamrandazzo
Copy link

I just downloaded the latest version of the plugin via composer, ran the cache and asset commands, and still experienced the problem. Akeneo 1.7.5 -- I had to correct the serialized DB field manually to create family exports.

@prabhassharma
Copy link
Author

@adamrandazzo Thanks for your comments.

Can you please provide the details of the updates that you did to the DB.

Thanks,
Prabhas

@asch11
Copy link

asch11 commented Jul 21, 2017

Hi did you guys get this sorted? How?
Adam

@adamrandazzo
Copy link

Hi All - Sorry I missed the original question 5 days ago. I ended up modifying the database directly to change the field. Here is a copy of my serialized settings from my DB. I added the en_US option into the labelLocale value. This is obviously a bit of a hack, but it has gotten me through until the bug can be resolved.

a:5:{s:8:"filePath";s:39:"/var/integration/export_%job_label%.csv";s:9:"delimiter";s:1:";";s:9:"enclosure";s:1:""";s:10:"withHeader";b:1;s:11:"labelLocale";s:5:"en_US";}

@Silarn
Copy link

Silarn commented Aug 17, 2017

I've been creating a local connector to allow for importing with a default locale/currency/scope|channel and figured out the cause of this issue.

Basically, it's the way that the dropdown elements are designed. If you only have one available locale, then you can't select a different option. And in order for akeneo to detect a new selection, you have to change the selected option.

Since your DefaultValuesProvider class passes the default value as 'null,' this is essentially the same as not setting a value. I fixed this by simply pulling the user's default locale and using that as the default. (ie. $this->userContext->getCurrentLocaleCode();)

In other words, akeneo drop-down selectors don't handle null values well. If the select only has one option, it will default to being 'selected', but akeneo doesn't actually detect a value because the drop-down was never changed. You'd have to pass an empty option to the select options JavaScript and set the default value to an empty string if you want an 'empty' default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants