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

customizing errors results in two error rows #3

Open
tmcgrath opened this issue Jun 19, 2014 · 0 comments
Open

customizing errors results in two error rows #3

tmcgrath opened this issue Jun 19, 2014 · 0 comments

Comments

@tmcgrath
Copy link

I'm trying to customize the error results:

   def afterBindRow(obj, row, index, columns, params, importLogId) {

        if (row[POPID]) {
                def clientSplitPopulation = Population.findByName(row[POPID])
                if (clientSplitPopulation) {
                    obj.population = clientSplitPopulation
                }
                else {
                    importsLogger.logErrorRow(importLogId, row, index, 'something bad happened')
                }
        }
    }

But this results in two error rows for the same error.

What am I doing wrong?

Thanks,
Todd

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

No branches or pull requests

1 participant